<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<form id="post-form" style="display:none;">
<input type="hidden" name="content" class="msg-content" value="">
<input type="hidden" name="messageTo.id" class="to-id" value="">
<input type="hidden" name="messageForm.id" value="<shiro:principal property="id"/>">
</form>
<div class="container-fluid">
	<div class="tabbable" id="tabs-598782">
		<ul class="nav nav-tabs">
			<li><a href="" data-toggle="tab" id="finance" style="border-bottom:#DDDDDD solid 1px;">提现申请</a>
			</li>
		</ul>
		<!-- 提现申请列表容器 -->
		<div class="tab-pane active" id="financeList" > </div>
	</div>
</div>
<script type="text/html" id="financeList-template">
<table class="table table-striped table-hover table-bordered">
	<thead>
		<tr>
			<th>用户名</th>
			<th>登录名</th>
			<th>用户角色</th>
			<th>电话</th>
			<th>申请时间</th>
            <th>提现金额</th>
            <th>提现方式</th>
            <th>账号</th>
            <th>操作</th>

		</tr>
	</thead>
	<tbody >
		<$for(var i = 0;i<result.length;i++){$>
		<tr>
			<td>
				<$=result[i].user.name$>
			</td>
			<td>
				<$=result[i].user.loginName$>
			</td>
			<td>
				<$=result[i].user.roles$>
			</td>
			<td>
				<$=result[i].user.phone$>
			</td>
			<td>
				<$=result[i].createdDate$>
			</td>
			<td>
				<$=result[i].amount$>
			</td>
            <td><$if(result[i].payType==0){$>支付宝<$}else{$>银行卡<$}$></td>
            <td>
                <$if(result[i].payType==0){$><$=result[i].account$><$}else{$><$=result[i].account$>/<$=result[i].bank$><$}$>
            </td>
            <td>
                <div class="btn-group">
					<a class="btn btn-warning accept-btn" style="color:#000" data='{"no":"<$=result[i].tradeNo$>","id":"<$=result[i].user.id$>","amount":"<$=result[i].amount$>"}'>同意</a>
					<a class="btn btn-warning regist-btn" style="color:#000" data='{"no":"<$=result[i].tradeNo$>","id":"<$=result[i].user.id$>","amount":"<$=result[i].amount$>"}'>拒绝 </a>
				</div>
            </td>
		</tr>
	<$}$>
	</tbody>
</table>
<$ if ( pageNo > 1 ) { $>
	<div class="pagination">
		<$==pagination$>
	</div>	
<$ } $>
</script>

<c:if test="${env == 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js-dist/admin/getcash-page");
	</script>
</c:if>
<c:if test="${env != 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js/admin/getcash-page");
	</script>
</c:if>